package io.nutz.nutzsite.module.signin.models;

import java.io.Serializable;
import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Default;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.One;
import org.nutz.dao.entity.annotation.Table;
		
/**
 * 签到表 signin_sned
 * 
 * @author lrw
 * @date 2020-02-29
 */
@Table("signin_sned")
public class Sned implements Serializable {
	private static final long serialVersionUID = 1L;
	
			@Id
		@Column("id")
	private Integer id;
			
			@One(field = "snid", key = "id")
	         public Snpub snpub;
			/** 发起的签名任务号 */
	@Column("snid")
	@Comment("发起的签名任务号")
	private String snid;

			/** 签到人uid */
	@Column("uid")
	@Comment("签到人uid")
	private String uid;

			/** 签到ip */
	@Column("snip")
	@Comment("签到ip")
	private String snip;

			/** 签到时间 */
	@Column("sntime")
	@Comment("签到时间")
	private Date sntime;

			/** 签到状态：-1未签，0正常，否则为迟到分钟数 */
	@Column("status")
	@Comment("签到状态：-1未签，0正常，否则为迟到分钟数")
	@Default("-1")
	private Integer status;

	private String title;
	private Date snstarttime;
	private Date snendtime;
	
	public void setId(Integer id) 
	{
		this.id = id;
	}

	public Integer getId() 
	{
		return id;
	}

	public void setSnid(String snid) 
	{
		this.snid = snid;
	}

	public String getSnid() 
	{
		return snid;
	}

	public void setUid(String uid) 
	{
		this.uid = uid;
	}

	public String getUid() 
	{
		return uid;
	}

	public void setSnip(String snip) 
	{
		this.snip = snip;
	}

	public String getSnip() 
	{
		return snip;
	}

	public void setSntime(Date sntime) 
	{
		this.sntime = sntime;
	}

	public Date getSntime() 
	{
		return sntime;
	}

	public void setStatus(Integer status) 
	{
		this.status = status;
	}

	public Integer getStatus() 
	{
		return status;
	}

	public Snpub getSnpub() {
		return snpub;
	}

	public void setSnpub(Snpub snpub) {
		this.snpub = snpub;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Date getSnstarttime() {
		return snstarttime;
	}

	public void setSnstarttime(Date snstarttime) {
		this.snstarttime = snstarttime;
	}

	public Date getSnendtime() {
		return snendtime;
	}

	public void setSnendtime(Date snendtime) {
		this.snendtime = snendtime;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("snid", getSnid())
            .append("uid", getUid())
            .append("snip", getSnip())
            .append("sntime", getSntime())
            .append("status", getStatus())
            .toString();
    }
}
